package com.david.trade.common;

import com.david.trade.common.enums.SpotOpCode;
import lombok.Data;

import java.io.Serializable;

/**
 * @author wangjijiang
 * @date 2020/6/18 17:58
 */
@Data
public class SocketReplyMsg implements Serializable {

    public long id;


    public SpotOpCode opCode;

    public Serializable data;

    public boolean isSuccess() {
        return opCode.isSuccess();
    }
}
